<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./fifter.js"></script>
</head>
<body>
  <script>
    let a = [1,5,8,9,15,484,91];
    let newsArray = a.myFifter((item,index,array) => {
      console.log("item",item);
      console.log("index",index);
      console.log("数组",array);
      return item % 2 === 0;
    })
    console.log(newsArray);
  </script>
</body>
</html>